package com.dailyblue.java.cloud.customer.feign.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.dailyblue.java.cloud.commons.util.JsonResult;
import com.dailyblue.java.cloud.commons.util.ResultTool;
import org.springframework.stereotype.Component;

@Component
public class MySecondBlockHandler {
    public static JsonResult blockHandlerMethodE(BlockException e) {
        return ResultTool.fail(500, "服务容错," + e.getMessage());
    }
}
